"""import Tool
import time
import ctypes
import ctypes.wintypes
from Tool.Actions import take_action, restart,take_direction, TackAction,Actions,Directions
import get_hp
import random
import win32gui
import win32api
import win32process
import ctypes
import time
import ctypes.wintypes
from ctypes import *
user32 = windll.user32

while 1:
    indicator=get_hp.Hp_getter()

    app = win32gui.GetWindowText(user32.GetForegroundWindow())
    if app == 'OriAndTheWilloftheWisps':
        take_action(random.randint(0,len(Actions)-1))
        take_direction(random.randint(0,len(Directions)-1))"""

import grabscreen
import cv2
window_size = (38,90,680,445)
while True:
    screen=grabscreen.grab_screen(window_size)
    cv2.imshow('test',screen)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break